import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /system/notification/unread
查询未读通知 */
export const getNotificationUnread = () => Vue.http.get(URL_PREFIX + '/system/notification/unread')

/* /system/notification/read
标记通知已读 */
export const markNotificationRead = (params) => Vue.http.post(URL_PREFIX + '/system/notification/read/', null, { params })

/* /system/notification/page
分页查询所有通知 */
export const getNotificationList = (params) => Vue.http.get(URL_PREFIX + '/system/notification/page', { params })
